package entity;

import java.time.LocalDateTime;

public class User {
    private Long id;
    private String username;
    private String password;
    private LocalDateTime loginTime;

    public User(Long id, String username, String password, Teacher teacher) {
        this(username, password, teacher);
        this.id = id;
    }

    public User(String username, String password, Teacher teacher) {
        super();
        this.username = username;
        this.password = password;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public LocalDateTime getLoginTime() {
        return loginTime;
    }
    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public String toString() {
        final String TAB = "    ";
        String retValue = "";

        retValue = "User ( "
                + super.toString() + TAB
                + "id = " + this.id + TAB
                + "username = " + this.username + TAB
                + "password = " + this.password + TAB
                + "loginTime = " + this.loginTime + TAB
                + " )";

        return retValue;
    }


}
